package map;

import com.jme.renderer.Camera;
import com.jme.scene.Controller;

public class StardustController extends Controller {
	
	private static final long serialVersionUID = 1L;
	
	private Camera cam = null;
    private Stardust dust = null;
    
    public StardustController(Stardust dust, Camera cam) {
        this.dust = dust;
        this.cam = cam;
    }
    
    @Override
    public void update(float time) {
        dust.update(cam.getLocation());
    }
}